package cn.blnp.net.flowable.boot.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>应用租户表</p>
 *
 * @author lyb 2045165565@qq.com
 * @version 1.0
 * @since 2025/2/25 13:46
 */
@Data
@TableName(value = "hc_tenant",autoResultMap = true)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class HcTenant implements Serializable {
    private static final long serialVersionUID = -6470901552709712359L;
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 租户名称
     */
    @TableField(value = "tenant_name")
    private String tenantName;

    /**
     *  动态数据源配置
     **/
    @TableField(value = "data_source")
    private String dataSource;

    /**
     * 描述
     */
    @TableField(value = "`desc`")
    private String desc;

    /**
     * 租户类型：1-普通租户；2-高级租户
     */
    @TableField(value = "tenant_type")
    private Integer tenantType;

    /**
     * 删除标识：0-未删除；1-已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 创建人ID
     */
    @TableField(value = "create_by")
    private String createBy;
}
